import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'

Vue.config.productionTip = false

// 配置axios
axios.defaults.baseURL = 'http://localhost:5000'
axios.defaults.withCredentials = true // 允许跨域请求携带 cookie
axios.defaults.headers.common['Content-Type'] = 'application/json'

Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app') 